﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Website/Site1.Master" AutoEventWireup="true" %>

<%@ Import Namespace="ChicagoDealsN" %>
<%@ Import Namespace="System.Data" %>
<script language="c#" runat="Server">
 private int getId()
    {
        return int.Parse(Request.QueryString["id"]);
    }
    
    void Page_Load()
    {
        if (!IsPostBack)
        {
            try
            {
                int userID = getId();
                string id = Request.QueryString["User_Id"];
                BizDeals myBizObject = new BizDeals();

                 DataTable dt = myBizObject.BLGetUserById(userID);
                foreach (DataRow dr in dt.Rows)
                {
                    lblId.Text = dr["User_Name"].ToString();
                    lblName.Text = dr["User_Address"].ToString();
                    lblPrice.Text = dr["Email_Id"].ToString();
                    lblPDesc.Text = dr["Gender"].ToString();
                }

            }
            catch (Exception ex)
            {
                //confirmationmessage.Text = "<h3>Invalid request</h1><br/>" + e + "<br/><br/>";
            }

        }

    }


<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder3" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
</asp:Content>
